import { getRequest, postRequest } from "@/lib/axios";
import {
  CHANNELLIST,
  CHANNELADD,
  CHANNELUPDATE,
  CHANNELDELETE,
  CHANNELCOUNTRYLIST,
  CHANNELCOUNTRYADD,
  CHANNELCOUNTRYUPDATE,
  CHANNELCOUNTRYDELETE,
  SYSBANKLIST,
  SYSBANKUPDATE,
  ASSETSCURRENCY,
  ASSETSCURRENCYUPDATE,
} from "@/config/api-constant/ExAssistant";

//平台设置相关接口
//支付渠道
export const channelListApi = (param) => {
  return getRequest(CHANNELLIST, param);
};
//新增支付渠道
export const channelAddApi = (param) => {
  return postRequest(CHANNELADD, param);
};
//更新支付渠道
export const channelUpdateApi = (param) => {
  return postRequest(CHANNELUPDATE, param);
};
//删除支付渠道
export const channelDeleteApi = (param) => {
  return postRequest(CHANNELDELETE, param);
};

//渠道支持国家
export const channelCountryListApi = (param) => {
  return getRequest(CHANNELCOUNTRYLIST, param);
};
//新增渠道支持国家
export const channelCountryAddApi = (param) => {
  return postRequest(CHANNELCOUNTRYADD, param);
};
//编辑渠道支持国家
export const channelCountryUpdateApi = (param) => {
  return postRequest(CHANNELCOUNTRYUPDATE, param);
};
//删除渠道支持国家
export const channelCountrylDeleteApi = (param) => {
  return postRequest(CHANNELCOUNTRYDELETE, param);
};

//系统收款卡
export const sysBankCardListApi = (param) => {
  return postRequest(SYSBANKLIST, param);
};
//系统收款卡select
export const sysBankCardSelectApi = (param) => {
  return getRequest("/exassistant/sys_bank_cards_select", param);
};
//系统收款卡更新
export const sysBankCardUpdateApi = (param) => {
  return postRequest(SYSBANKUPDATE, param);
};

//资产币种
export const assetsCurrencyApi = (param) => {
  return postRequest(ASSETSCURRENCY, param);
};
//新增、编辑币种
export const assetsCurrencyUpdateApi = (param) => {
  return postRequest(ASSETSCURRENCYUPDATE, param);
};

//公司主体
export const sysCompanyListApi = (param) => {
  return postRequest("/exassistant/sys_company", param);
};
//公司主体更新
export const sysCompanyUpdateApi = (param) => {
  return postRequest("/exassistant/sys_company_update", param);
};

//商户充值账号
export const sysMerchantCardsListApi = (param) => {
  return postRequest("/exassistant/sys_bank_cards_mer", param);
};
//新增、编辑商户充值账号
export const sysMerchantCardsUpdateApi = (param) => {
  return postRequest("/exassistant/sys_bank_cards_mer_update", param);
};
